package com.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wty
 * @since 2021-10-24
 */
@Data
@Accessors(chain = true)
@TableName("code_cjl")
public class CodeCjl extends Model<CodeCjl> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String code;
    private String name;
    /**
     * 最近20天成交量
     */
    private String cjl;
    /**
     * 最近20天最高成交量
     */
    @TableField("h_cjl")
    private BigDecimal hCjl;
    /**
     * 昨天成交量
     */
    @TableField("z_cjl")
    private BigDecimal zCjl;
    /**
     * 最近20天价格
     */
    @TableField("h_price")
    private BigDecimal hPrice;
    @TableField("z_price")
    private BigDecimal zPrice;
    /**
     * 行业
     */
    private String industry;
    /**
     * 细分
     */
    private String subdivide;

    private String time;
    private String status;

    @TableField(exist = false)
    private String cjlorzf;

    private String type;

    /**
     * 近一周涨幅
     * @return
     */
    private String zzf;

    /**
     * 最近一周，一个月涨幅
     * @return
     */
    private String zyback;

    private BigDecimal maxzf;

    private int index;

    @TableField(exist = false)
    private BigDecimal wPrice;

    @TableField(exist = false)
    private String hsl;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
